﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ArticleListViewModel>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<div class="bor_cor mar_b">
    <div class="bar_blue">
        <%if (Model.Category != null)
          { %>
        <a href="/news/list/<%=Model.Category.ID %>"><%=ViewData["Title"]%></a>
        <%}
          else
          { %>
          <%=ViewData["Title"]%>
        <%} %>
        
    </div>
    <div class="module_content">
        <div class="new_list">
            <%if (Model!=null && Model.Articles!=null)
            { %>
            <ul>
   	          <%foreach(var item in Model.Articles)
                {
                 %>
   	            <li>
   	                <a href="/news/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>">
                        <%=Html.Encode(item.Title) %>
                    </a>
   	                <%--<%=Html.ActionLink(item.Title,"Details","Article",new{id=item.ID},new{}) %>--%>
   	                <div class="line_dot"></div>  
   	            </li>              
               <%} %>
            </ul>
          <%} %>
        </div>
    </div>
    <div class="clear">
    </div>
</div>


